package com.netty.demo.server.netty.processor.protocol;

import com.netty.demo.server.dto.UdpRequestMessage;
import com.netty.demo.server.netty.annotation.ProtocolAnnotation;
import com.netty.demo.server.netty.enums.RequestHeaderProtocol;
import com.netty.demo.server.netty.processor.ProtocolProcessor;
import com.netty.demo.server.service.FileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Administrator 余秀良
 * @version 1.0
 * <p>date: 2019年09月25日  10:38 </p>
 * <p>address: 四川成都 </p>
 */
@Slf4j
@Component
@ProtocolAnnotation(value = RequestHeaderProtocol.A408)
public class A408ProtocolProcessor implements ProtocolProcessor {
    @Resource
    private FileService fileService;

    @Override
    public void execute(UdpRequestMessage message) {
        System.out.println(message);
    }
}
